package com.mzj.saas.mservice.property.repository;

import com.mzj.saas.mservice.property.entity.EstateRepairsRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author hikari
 * @since 2021-05-14
 */
@Repository
public interface EstateRepairsRecordRepository extends JpaRepository<EstateRepairsRecord, Long>, JpaSpecificationExecutor<EstateRepairsRecord> {
    List<EstateRepairsRecord> findByHouseIdIn(List<String> houseIdList);

    List<EstateRepairsRecord> findByServiceUserIdIn(List<Long> serviceUserId);
}
